/*
 * @Descripttion: 
 * @version: 1.0.0
 * @Author: guoxiaomin
 * @Email: 1093556028@qq.com
 * @Date: 2019-08-20 10:38:02
 * @LastEditors: guoxiaomin
 * @LastEditTime: 2019-09-11 12:27:39
 */
import Vue from 'vue'
import Router from 'vue-router'
import webHome from './views/web//Home.vue'
import webAbout from './views/web/About.vue'
import webOutMoney from './views/web/outMoney.vue'
import webEnterMoney from './views/web/enterMoney.vue'
import wapHome from './views/wap//home.vue'
import wapAbout from './views/wap/about.vue'
import wapOutMoney from './views/wap/outMoney.vue'
import wapEnterMoney from './views/wap/enterMoney.vue'
import { isMobile } from '@/common/tool'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: isMobile() ? wapHome : webHome
    },
    {
      path: '/about',
      name: 'About',
      component: isMobile() ? wapAbout : webAbout
    },
    {
      path: '/outMoney',
      name: 'OutMoney',
      component: isMobile() ? wapOutMoney : webOutMoney
    },
    {
      path: '/enterMoney',
      name: 'EnterMoney',
      component: isMobile() ? wapEnterMoney : webEnterMoney
    }
  ]
})
